using Magiq.Behaviors;

namespace Magiq.Insert
{
    public class DefaultInsertBehavior : DefaultBehavior, IInsertBehavior
    {
        public IInsertStrategy GetInsertStrategy<TSource, TDestination, TNew>( IInsert<TSource, TDestination, TNew> insert) where TDestination : class where TNew : class, TDestination, new()
        {
            return Magiq.ForInsert(insert);
        }

        public int Execute(IInsertStrategy strategy)
        {
            return strategy.Execute();
        }
    }
}